package com.yuyou.fn.tradingservice.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *服务车订单
 */
@TableName(value = "service_order")
public class ServiceOrder implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<ServiceOrder> createExample(){
		return new Example<ServiceOrder>(ServiceOrder.class);
	}

	/** 订单Id */
	@TableId(value = "order_id")
	private Long orderId;

	/** 訂單編號 */
	private String sn;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 支付狀態 0:未支付， 2：支付 */
	@TableField(value = "charging_status")
	private Integer chargingStatus;

	/** 收货地址Id */
	@TableField(value = "address_id")
	private Long addressId;

	/** 支付方式 0:现金， 1：支付宝， 2：微信， 3：财付通， 4：银行转账 */
	@TableField(value = "pay_way")
	private Integer payWay;

	/** 订单总价 */
	@TableField(value = "total_amount")
	private BigDecimal totalAmount;


	@TableField(value = "payable_amount")
	private BigDecimal payableAmount;

	@TableField(value = "paid_amount")
	private BigDecimal paidAmount;

	/** 订单类型：0-商品，1-服务，2-租赁 */
	private Integer type;

	/** 收货地址 */
	@TableField(value = "person_address")
	private String personAddress;

	/** 用户手机号码 */
	@TableField(value = "phone_no")
	private String phoneNo;

	/** 联系人 */
	private String consignee;

	/**  */
	@TableField(value = "buyer_id")
	private Long buyerId;

	/**  */
	@TableField(value = "buyer_name")
	private String buyerName;

	/** 支付主体id */
	@TableField(value = "pay_main_account_id")
	private Long payMainAccountId;

	/**  */
	@TableField(value = "pay_main_account_name")
	private String payMainAccountName;

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getChargingStatus() {
		return chargingStatus;
	}

	public void setChargingStatus(Integer chargingStatus) {
		this.chargingStatus = chargingStatus;
	}

	public Long getAddressId() {
		return this.addressId;
	}

	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	public Integer getPayWay() {
		return this.payWay;
	}

	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}

	public BigDecimal getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getPayableAmount() {
		return payableAmount;
	}

	public void setPayableAmount(BigDecimal payableAmount) {
		this.payableAmount = payableAmount;
	}

	public BigDecimal getPaidAmount() {
		return paidAmount;
	}

	public void setPaidAmount(BigDecimal paidAmount) {
		this.paidAmount = paidAmount;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPersonAddress() {
		return this.personAddress;
	}

	public void setPersonAddress(String personAddress) {
		this.personAddress = personAddress;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getConsignee() {
		return this.consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	public Long getBuyerId() {
		return this.buyerId;
	}

	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}

	public String getBuyerName() {
		return this.buyerName;
	}

	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}

	public Long getPayMainAccountId() {
		return this.payMainAccountId;
	}

	public void setPayMainAccountId(Long payMainAccountId) {
		this.payMainAccountId = payMainAccountId;
	}

	public String getPayMainAccountName() {
		return this.payMainAccountName;
	}

	public void setPayMainAccountName(String payMainAccountName) {
		this.payMainAccountName = payMainAccountName;
	}
}
